home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
msysjour
/
vol06
/
04
/
pcx2dib
/
file.h
< prev
next >
Wrap
Text File
|
1991-07-01
|
1KB
|
32 lines
/* PCX header definition */
/* Author: C. Albert Mirho */
typedef struct pcxhead {
BYTE bManID; // Manufactures ID number
BYTE bHver; // Version number:
// 0 = Version 2.5 of PC Paintbrush
// 2 = Version 2.8 w/palette information
// 3 = Version 2.8 w/o palette information
// 4 = PC Paintbrush for Windows (Plus for Windows
// uses Ver 5)
// 5 = Version 3.0 and > of PC Paintbrush and PC
// Paintbrush +, includes Publisher's Paintbrush.
// Includes 24-bit .PCX files
BYTE bEncod; // 1 if the file is run-length encoded
BYTE bBitPix; // Number of bits/pixel/bitplane
int iX1; // Bitmap dimensions
int iY1;
int iX2;
int iY2;
int iHres; // Horizontal resolution of display the bitmap was
// created on.
int iVres; // Vertical resolution of display the bitmap was
// created on.
BYTE abPal[48]; // Color table
BYTE bVmode; // Not used.
BYTE bNplanes; // Number of bit planes
int iBytesPerBitPlane; // Bytes per bit plane
BYTE abFill[60]; // Unused space
} SHORTPCXHEAD;